stacks-n-queues solutions to the problems of stacks and queues chapter in cracking the coding interview book