Given a string s consisting of lowercase English letters, determine the maximum difference between the frequency of a character that appears an odd number of times and the frequency of a character that appears an even number of times.
Specifically, calculate the maximum value of s.
Constraints:
s.length
s consists only of lowercase English letters.
s contains at least one character with an odd frequency and at least one character with an even frequency.
Given a string s consisting of lowercase English letters, determine the maximum difference between the frequency of a character that appears an odd number of times and the frequency of a character that appears an even number of times.
Specifically, calculate the maximum value of s.
Constraints:
s.length
s consists only of lowercase English letters.
s contains at least one character with an odd frequency and at least one character with an even frequency.