Solved Unique Binary Tree, from leetcode.com