Google interview question

about DSA, specifically array manipulation