Replace the Substring for Balanced String

mediumSolve on LeetCode
Last edited: August 2, 2025