Persistent Systems Interview Question

Question on stack and queues.