'Filter Perfect Squares' solved