s to build the result.a > 0 or b > 0):
a. If the last two characters of s are not the same, append the most common letter (either 'a' or 'b').
b. If the last two characters of s are the same, append the other letter.
c. Decrement the counter of the letter appended.s.