Find repeating characters in string. Count occurrences of number in a stream of numbers. Print elements of a linked list in a particular order. Eg: 2-4-5-6-7-10-13 . output - "2,4-7,10,13". If the numbers are consecutive print the starting and ending number of the range, otherwise print the numbers as such in the form of string