Implement a function to return whether an integer is perfect square calling sub function is not accepted