Minimum Cost To Make String Valid Leetcode Problems