Enova interview question

an intermediate c++ array question.