Enzigma interview question

Basic opps concept