Sort grades without comparing
grades is a list of letters from "A" to "F" (no "E"). Write
sort_grades(grades) that returns them sorted from "A" to "F"
using counting: tally how many of each grade there are, then build the
result from the tallies in order.
sort_grades(["C", "A", "F", "B", "A", "C"]) -> ["A", "A", "B", "C", "C", "F"]
sort_grades([]) -> []
The point is to practise counting sort, so do it with counts rather than
sorted.
def sort_grades(grades):
...