Compact a Sorted List into Continuous Ranges

Company: Cisco

Difficulty: easy