1717.js
/** ------------------------------------------------------------------------------
*
* 1717. Maximum Score From Removing Substrings
* Topics:
* https://leetcode.com/problems/maximum-score-from-removing-substrings/?envType=daily-question&envId=2024-07-12
*
------------------------------------------------------------------------------ */
/**
* @param {string} s
* @param {number} x
* @param {number} y
* @return {number}
*/
var maximumGain = function (s, x, y) {
while()
}
const
console.log(maximumGain("cdbcbbaaabab", 4, 5))