Minimum Cost To Make String Valid Leetcode