Accenture interview question

oops concepts