Adding HackerRank Utopian Tree solution