Sqrt(x)

Return the integer square root of x: the largest integer r such that r * r <= x. Built-in square-root and exponent functions must not be used.

Examples
Input: 4
Output: 2
Hints

Sqrt(x)

Return the integer square root of `x`: the largest integer `r` such that `r * r <= x`. Built-in square-root and exponent functions must not be used.