Glassdoor interview question

Array manipulation based questions