Last Element of Each Level in an Almost Complete Binary Tree

Company: Bank of Australia

Difficulty: medium