Ericsson interview question

OOP's concepts