def make_histogram(s: list) -> dict:
    """Takes a string or a list, finds its elements frequency and returns a dictionary with
    element-frequency as key-value pairs.
    """

    d = dict()
    for char in s:
        d[char] = 1 + d.get(char, 0)
    
    return d