Zillow interview question

some twists on classic tree/binary search/recursive problems.