Ericsson Interview Question

Not difficult