Accenture interview question

Basics of oops