Total Characters in String After Transformations I | Leetcode 3335