pub fn compact_ranges(numbers: &[i32]) -> String
[20, 21, 22, 25] as 20-22,25. The input need not be sorted and may repeat.
[20, 21, 22, 25]
20-22,25