Omnissa Interview Question

Simple graph trace, BST and two points variants