Pregunta de entrevista de Bloomberg

Write a code to write the last level nodes of a binary tree.