LeetCode
RLE Iterator
Click
here
for an explanation.