If the total number of brackets should be equal in the string, then how is it possible that at each index the number of opening brackets are greater than the number of closing brackets?
Also please explain the test case.
And can a or b be an empty string?
Is it an indication of the type of data type to be used to print the answer “Print the answer with modulo 10^9 + 7” ?
