SplashLearn Interview Question

Write a program to check parenthesis are right.