Unique binary search tree II AC.