Amazon Online Assessment (OA) - Distance Between Nodes in BST