https://blog.stackademic.com/leetcode-3351-total-characters-in-string-after-transformations-i-53e2022876da