Count Ways to Group Overlapping Ranges — CaffeCode