Leetcode 2121. Intervals Between Identical Elements | Hello Interview