Completed Utopian Tree challenge

https://www.hackerrank.com/challenges/utopian-tree