Pregunta de entrevista de Tata Consultancy Services

A basic Java array modification question.