Solutions to ch.8 (stacks/queues) questions from Elements of Programming Interviews.