poor description
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```python3 []
class Solution:
    def countWays(self, ranges: List[List[int]]) -> int:
        ranges.sort()
        mod = ((10 ** 9) + 7)
        print(ranges)
        ans = [ranges[0]]
        for i in range(1, len(ranges)):
            if ranges[i][0] <= ans[-1][1]:
                ans[-1][1] = max(ans[-1][1], ranges[i][1])
            else:
                ans.append(ranges[i])
        return (2 ** len(ans)) % mod

```
['Python3']