Oracle Interview Question

Build stack using queues. Lowest common ancestors in bst.