Meta Interview Question

It was a fairly common array problem