Problem 2219 · Medium
At each index compare the running prefix with the remaining suffix; keep the largest score.
Open the interactive visualisation