import java.util.*; public class Parenthesis { public boolean chkParenthesis(String A, int n) { // write code here Stack<Character> stack = new Stack<>(); for(int i = 0;i<n;i++){ char c = A.charAt(i); if(c == '('){ ...