Minimum String Length After Removing Substrings Leetcode Problem 7

Minimum String Length After Removing Substrings Leetcode Problem 7