Coding Interview Questions

Score of Parentheses

Problem Statement: You are given a string consisting of pair of balanced parentheses. You need to calculate the total score of the given…