Ericsson Interview Question

Pretty Straightforward