Intervals Between Identical Elements

Intervals Between Identical Elements - Coding Problem | K5kC