from typing import Dict


def _get_char_frequency(data) -> Dict:
    """Returns a dictionary with the frequency of each character in the input.
    """

    freq_map = {}
    for c in data:
        if c in freq_map:
            freq_map[c] += 1
        else:
            freq_map[c] = 1

    return freq_map