0

Pair my brackets
Given a string consisting of ()[]{}, print the paired brackets in the same order as they appear in the string.
Any opening bracket ([{ can be paired with any closing bracket )]}.
For example:
({()[}]]
returns:
(], {], (), [}
Rules
A string consisting of ()[]{} should be receive...