Impetus Technologies Interview Question

Leetcode easy Valid parenthesis with some modifications and implementation of stack.