Lam Research Interview Question

Program to find count of each character in a string Sort list on a condition