Oracle interview question

Function to valid a perfect square.