I got lost totally - it is a whole range of numbers! 

Actually, we can check each number within the range and pick it greedily.

https://leetcode.com/discuss/82822/solution-explanation