Count Repeated Characters

Problem: Given String s ="aabbcddccb"
Output > "2a2bc2d2cb"

Repeated characted are counted and the final string is made. Assumption the Input string has only alphabets.

Comments (2)
No comments yet.