Integral part of square root

Take the following as input.

A number (N)
Write a function which returns the integral part of square root of N. Print the value returned.

Input Format
Constraints
0 < N < 1000000000

solution link: https://ide.codingblocks.com/s/280525

one test case is not passing