ctci 3.7

multiple queues
Better check BST