Given a non-empty string s, return the character that occurs the most times in s.
If multiple characters have the same maximum frequency, return the one whose first occurrence index in s is smallest.
s
(characters are case-sensitive).
1 <= len(s) <= 2 * 10^5
s
may contain any printable ASCII characters (treat each distinct character separately).
"abcaac"
a=3, c=2, b=1
→ Output:
a