Create a function called extractRanges
that takes a string containing ranges
of numbers as input
and returns an array of arrays, where
each sub-array represents a range of numbers.
If a single number is present without a range,
it should be returned as a single-element array.