Bloomberg Interview Question

LT: tree traversal, lists merging