Accenture interview question

one coding question