http://www.nxcoding.com/archives/leetcode-daily-3335-length-of-string-after-transformations