Given a string with brackets. If the start index of the open bracket is given, find the index of the closing bracket.
Input: string = [ABC]
index = 0
The opening bracket at index 0 corresponds
to closing bracket at index 8.
1 <= T <= 100
1 <= N <= 104
Testcase 1: The index of closing bracket for the index of open bracket is: 8.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.