Accenture interview question

Difficult to Moderate