More Retail interview question

Basic of oops