Error:
cannot solve it. It is binary search, but it also do not depend on left and right, it is not a min. or max. problem. So it cannot directly return left, we should check if current number is in the gap(mid^2 <= x < (mid+1)^2)

Also, use mid^2 will occur, so we can divide by the x