Accenture interview question

Had 3 sets