This website collects cookies to deliver better user experience

Checking if a pair of parentheses are balanced in O(n) time and O(1) Space.