Sum of Beauty of All Substrings

Answer Panel