Pergunta de entrevista da empresa Intel Corporation

Programming question, manipulations within an array.