Geecon Global interview question

basic of oops.