Xavor interview question

OOP concepts