Sponsored
Use these hints if you're stuck. Try solving on your own first.
Process pairs from right to left to handle repeats
Keep track of the current enclosed string using another string
Solve with full IDE support and test cases