Ericsson interview question

Data structure and design pattern