Solved UniqueBinarySearchTrees in java