The simple fix in this case would be:
O(n + m), where n is the length of the string, m is the total length of all characters in the string.
The simple fix in this case would be:
O(n + m), where n is the length of the string, m is the total length of all characters in the string.