HYR Global Source interview question

OOPS concepts