Amazon Interview Question

Basics on implementation of stacks and queues