This problem can be easily done by Trial and error method.
First Estimate the sum of any 4 numbers around the given number.
Then Divide the sum by 10
Find if it is near a perfect square
Now Use Trial and error method to find the number isf neccessary