Domanda di colloquio di Bloomberg

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