Function to return the minimum operations required
static int minOperations ( String s , int len ) { int operationCnt = 0 ; Stack < char > st = new Stack < char > ( ) ; int cntClosing = 0 ; for ( int i = 0 ; i < len ; i ++ ) {