https://school.programmers.co.kr/learn/courses/30/lessons/12934
def solution(n):
for i in range(1,n//2+2):
if n==i*i:
return (i+1)*(i+1)
return -1
def nextSqure(n):
sqrt = n ** (1/2)
if sqrt % 1 == 0:
return (sqrt + 1) ** 2
return -1