How to check balanced Parenthesis in swift ?

[Question]: Check if the given string has balanced parenthesis //Example 1: // //Input: s = “()” //Output: true //Example 2: // //Input: s = “[](){}” //Output: true //Example 3: // //Input: s = “(}” //Output: false