# Given examples (1, 6), (8, 10) (1, 2), (3, 10) (1, 5), (7, 9), (10, 11)