My Java 3ms Straight Forward Solution | Beats 100%
\nclass Solution {\n    public String removeOuterParentheses(String S) {\n        \n        StringBuilder sb = new StringBuilder();\n        int open=0, close=0
```\nclass Solution {\n    public String removeOuterParentheses(String S) {\n        \n        StringBuilder sb = new StringBuilder();\n        int open=0, close=0, start=0;\n        for(int i=0; i<S.length(); i++) {\n            if(S.charAt(i) == \'(\') {\n                open++;\n            } else if(S.charAt(i) == \')\') {\n                close++;\n            }\n            if(open==close) {\n                sb.append(S.substring(start+1, i));\n                start=i+1;\n            }\n        }\n        return sb.toString();\n    }\n}\n```
[]