Meta Interview Question

Binary tree search and stack management