Pergunta de entrevista da empresa Winton Group

Binary Trees question on Codility