Balanced parenthesis

You are given a string of brackets i.e. β€˜{’, β€˜}’ , β€˜(’ , β€˜)’, β€˜[’ , β€˜]’ . You have to check whether the sequence of parenthesis is balanced or not.
For example, β€œ(())”, β€œ(())()” are balanced and β€œ())(”, β€œ(()))” are not.

Input Format
A string of β€˜(’ , β€˜)’ , β€˜{’ , β€˜}’ and β€˜[’ , β€˜]’ .

Constraints
1<=|S|<=10^5

Output Format
Print β€œYes” if the brackets are balanced and β€œNo” if not balanced.

Sample Input
(())

Sample Output
Yes

solution link: https://ide.codingblocks.com/s/294695

one test case is not passing

@1799sanya read the question carefully You are given a string of brackets i.e. β€˜{’, β€˜}’ , β€˜(’ , β€˜)’, β€˜[’ , β€˜]’ .
but in your code you are only considering single type of bracket.make your code to handle all 3 types of brackets.