Question d’entretien chez Bloomberg

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