Domanda di colloquio di Synchrony

given a array of numbers asked to remove squares from that array