Sum of Beauty of All Substrings

给一个string, 求它所有的substring的最大字符count和最小字符count的差. 这个没什么可优化的, 简单的先处理下substring的count方法即可.