Max Char
Directions
Given a string, return the character that is most commonly used in the string.
Examples:
maxChar("abcccccccd") === "c"
maxChar("apple 1231111") === "1"
Solutions
Solution #1
Solution #2