Intel Corporation interview question

Programming question, manipulations within an array.