Write a function that takes an integer as input and returns true if it's a perfect square else false.
public static bool IsPerfectSquare(int n) { }
ex: Perfect squares = 16 (4x4), 25 (5x5) etc