Pregunta de entrevista de Meta

tree question of finding right most node