Pregunta de entrevista de IBM

populate next right pointer in the tree