Playing Hacks and Stuffs!
The way I solved this is to binary search the giving number to get it’s square root
Then I checked if the square root is indeed a perfect square
Solve Script: link