Eternus Solutions interview question

OOP's concepts