Capgemini interview question

Write the push and pop methods without using stack.