def isSubhist(hist1, hist2):
    """
    Checks if hist1 is a subset of hist2
    Input: hist1, hist2 -- dictionary histograms
    Output: Boolean
    """
    for letter in hist1:
        if letter not in hist2 or hist1[letter] > hist2[letter]:
            return False
    return True