Given an integer x , Your task is to find the square root of it. If x is not a perfect square, then return floor(√x)
You have to complete the method which takes 1 argument: the integer N. You should not read any input from stdin/console. There are multiple test cases. For each test cases, this method will be called individually.
Your function should return square root of given integer.
1 ≤ T ≤ 1000
1 ≤ N ≤ 1000000