Pergunta de entrevista da empresa MongoDB

Write a function to convert a non-decreasing list of ints to a balanced binary tree.