Intel Corporation Interview Question

Programming question, manipulations within an array.