Write a function compress_ranges
that receives an array of integers, and
returns a string where consecutive integers are replaced with a range showing
the first and last number in that run.
You can assume the array only contains distinct integers, and is always sorted in ascending order.