Find the maximum occurring character in a string.
Asked in the online assessment stage. Implement the function below. Count every character, including spaces, and treat uppercase and lowercase characters as distinct. If multiple characters have the same maximum frequency, return the one whose final occurrence is latest in the string.
max_occurring_char(s) receives a non-empty string s and returns a one-character string.
def max_occurring_char(s):