Intervals between identical elements - Leetcode 2121 - coding interview question

Published --