Pregunta de entrevista de Capgemini

Write the push and pop methods without using stack.