https://jonathan-ck-chao.medium.com/the-blind-75-leetcode-series-the-second-trimester-review-e9e259bd45f5