AMMU interview question

Basic oops concepts