Lead Forensics Interview Question

Q: Matching brackets - Leetcode #20