Pergunta de entrevista da empresa Microsoft

Tree, 2 pointers, matrix based questions