Mubashir needs your help to find next integral perfect square after the one passed as a parameter.
Create a function which takes a given number n and returns next integral perfect square number. Return nil if the given number is not a perfect square.
next_square(121) ➞ 144
next_square(625) ➞ 676
next_square(114) ➞ nil
# 114 is not a perfect squareN/A