def histogram(text):
    """ Return a character histogram dictionary for the given text."""
    hist = dict()
    for letter in text:
        hist.setdefault(letter, 0)
        hist[letter] += 1
    return hist