MongoDB interview question

Overlay Binary Trees, straight from LeetCode.