Sponsored
Use these hints if you're stuck. Try solving on your own first.
Maintain the running sum and max value for repeated letters.
Solve with full IDE support and test cases