Ericsson Interview Question

I thought the hardest part was the test.