Sponsored
Use these hints if you're stuck. Try solving on your own first.
Find all consecutive blocks of <code>’x’</code>.
Sort them by their length.
Try to fix the block from the largest one until you have enough budget.
Solve with full IDE support and test cases