Write a function histogram (x) that accepts a sequence (e.g., list or np.array of nonneg-ative integers x and returns a list f of the frequencies with which each number appears. The last element of f should be the frequency of the largest number in x. Some examples:
In [1]: histogram([0, 0, 1, 1, 1])
Out [1]: [2, 3]
In [2]: histogram([1, 1, 5, 2, 1, 3, 3])
Out [3]: [0, 3, 1, 2, 0, 1]