Problem 1770 · Hard
Maximize score by repeatedly multiplying and removing either array endpoint.
Open the interactive visualisation