Pregunta de entrevista de Infosys

adding and removing element from stack