Qualcomm interview question

Moderate level BST and graph algorithm questions