Ericsson interview question

Not difficult