Oracle interview question

Build stack using queues. Lowest common ancestors in bst.