Globant interview question

BST and graph questions