hackerrank utopian-tree