How to find the end bracket given a random string with many nested brackets
Anonymous
Read through the string char by char, and have a counter for each open bracket (+1)/closed bracket(-1), return position when counter reaches zero
Check out your Company Bowl for anonymous work chats.