```python
def get_max_occuring_char(str1):
    """
    Finds the maximum occurring character in a given string.
    """
    if not str1:
        return None

    char_counts = {}
    for char in str1:
        char_counts[char] = char_counts.get(char, 0) + 1

    max_char = ''
    max_count = -1

    for char, count in char_counts.items():
        if count > max_count:
            max_count = count
            max_char = char
            
    return max_char
```