Accenture interview question

Basic mvc and oops