Pregunta de entrevista de Oracle

stack based question and also linked list