Let's say I have an input string str and I want to increase it's value by 1 digit each loop so 'a'->'b' & 'm'->'n', and when it reaches 'z' it increases as shown in the example below.
str= "aaaaa"
output= "aaaab"
str="aaaaz"
output="aaaba"
str ="kbzzz"
output="kcaaa"
I hope you get the idea, it is sort of like a car's odometer. How to implement this function?