Domanda di colloquio di Bharti Airtel

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