Adrosonic Interview Question

Basic oops concepts: