Synchrony interview question

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