Citi interview question

Digged deep to into oops concepts.