Revolut Interview Question

Perfect Squares (available on leetcode)