Pregunta de entrevista de Bharti Airtel

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