You are given a string made up of only these bracket characters: ()[]{}. A string is said to have valid
brackets if and only if for every opening bracket, there is the corresponding closing bracket after it.
say For example, ?()[]{}? and ?[({}())[]]? have valid brackets, but ?(){]? and ?{[}]? are not valid
brackets.....
Write a program to accept a string as input, and determine whether the string has valid or invalid
brackets. Print ?valid? or ?invalid? as the output.
brackets if and only if for every opening bracket, there is the corresponding closing bracket after it.
say For example, ?()[]{}? and ?[({}())[]]? have valid brackets, but ?(){]? and ?{[}]? are not valid
brackets.....
Write a program to accept a string as input, and determine whether the string has valid or invalid
brackets. Print ?valid? or ?invalid? as the output.