Sponsored
Use these hints if you're stuck. Try solving on your own first.
Find all brackets in the string.
Does the order of the reverse matter ?
The order does not matter.
Solve with full IDE support and test cases