Accenture interview question

Regarding some large code to write