Sqrt(x) — binary search for the boundary
Search for the first number whose square exceeds x. The integer square root is one less than that boundary.
Try:
left = 1
mid =
right = 1