Bharti Airtel interview question

given a binary tree find the nearest node. check geeks for geeks lolz