Question d’entretien chez Bharti Airtel

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