Accenture interview question

no difficulties as such