Maximum Score From Removing Substrings | Leetcode 1717 | Stack