Bloomberg interview question

LT: tree traversal, lists merging