Accenture interview question

basic concepts