Too Long; Didn't Read
Problem is said to be balanced when it meets two criteria: Last Opened First Closed (LOFC) and the one that opens last is the first one to close LOFC. If the input string is empty, then we’d say that it’s balanced. If the string contains brackets [], parentheses (%), parentheses (), and braces { {) are balanced. We can be a genius to solve it fast, but we need to observe this thinking process slowly. That means we must refrain from using a pen and paper. We must focus entirely on this activity to complete it in a single stretch.