Bloomberg interview question

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