NeoSOFT interview question

oop concept