Maximus Infoware interview question

basic of oops