並前往https://leetcode.com/problems/intervals-between-identical-elements/discuss/1656730/simple-prefix-sum-approach-c-explained