Litmus7 interview question

Find the minimum in a given Array Valid parenthesis