https://jonathan-ck-chao.medium.com/the-blind-75-leetcode-series-non-overlapping-intervals-7a152737cc9b