[Java] ✅Faster Solution 99.85% Big O(N) || Without Stack
\n\n# Code\n\nclass Solution {\n    public String removeOuterParentheses(String s) {\n        int count = 0;\n        StringBuilder str = new StringBuilder();\n
\n\n# Code\n```\nclass Solution {\n    public String removeOuterParentheses(String s) {\n        int count = 0;\n        StringBuilder str = new StringBuilder();\n\n        for(int i = 0; i<s.length(); i++){\n            if( s.charAt(i) == \'(\'){\n                count++;\n                if(count>=2) str.append(\'(\');\n            }else {\n                if(count>=2) str.append(\')\');\n                count--;\n            }\n        }\n\n        return str.toString();\n    }\n}\n```
['Java']