How do I get my program to recognize numbers in a row and print the number that appears the most times consecutively in that row.I also need to print the most amount of times it appears consecutively in the row.
eg 1223336677777889771666
ans=7
most times= 5
help plz Tnx