Check for Balanced Parentheses

Given an expression with parentheses ({[]}), write a program to check if it is balanced using a stack.

Input