python leetcode 279. Perfect Squares

NoSuchKey