Commit

461451e

One other trick that I was using in interview settings was the Counter from python. For example, we can easily count the characters in a word:
word = "banana"
counts = Counter(word)

print(counts)
# Counter({'a': 3, 'n': 2, 'b': 1})

commit 461451e