Infosys interview question

Given a string, determine if the parenthesis are valid.

Infosys Interview Question: Given a string, determine if the parenthesis are valid. | Glassdoor