Google Interview Question

Simple array manipulation question. I'm not allowed to share the actual question.