Perfect Squares Leetcode