TomTom interview question

Codility live coding interview with a developer