Meta interview question

It was a fairly common array problem