Ericsson interview question

easy