Bloomberg interview question

linked-list related and tree-related coding problems