Minimum Swaps to Balance a String of Parentheses

Company: Visa_17june

Difficulty: easy