Meta interview question

Basic question about array manipulation.