Pregunta de entrevista de Intel Corporation

Programming question, manipulations within an array.