Pergunta de entrevista da empresa Zillow

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