Accenture interview question

Basic coding questions