Accenture interview question

Not that difficult