I want to convert my sequence from format(AAAABBCCdd) to (A4B2C2d2) and it is case sensitive.
format(AAAABBCCdd)
(A4B2C2d2)
This is my code but it doesn\'t return the num