FINRA Interview Question

Overlapping Intervals and Second appearance of every character in a String