Frage im Vorstellungsgespräch bei Tata Consultancy Services

A basic Java array modification question.