Problem description Given a string, count the number of occurrences of all of its letters. Some cases: Before reading forward, make sure you first try to solve the problem yourself. When you're done you can come back and see how I'm going to solve…