Pergunta de entrevista da empresa Google

Both technical questions involved binary trees.