Solve unique binary search trees ii issue