An array of parentheses are given. We need to find out if the array contains both opening and closing parentheses or not. Steps: Declare a variable called "stack" and store an empty array. Iterate a for loop over the given array and store the array...