1 <= A <= 10^8
First and the only argument is an integer A.
Return an integer which is the square root of A if A is perfect square otherwise return -1.
Input 1: A = 4
Input 2: A = 1001
Output 1: 2
Output 2: -1
Explanation 1: sqrt(4) = 2
Explanation 2: 1001 is not a perfect square.