Capgemini Interview Question

Write your own stack class