Question d’entretien chez Ericsson

Explain how you managed to solve the task?