Accenture interview question

Not Difficult