Project Euler 142 - Perfect Square Collection

Official link: https://projecteuler.net/problem=142