remove invalid parenthesis Algorithm

However, the language itself makes not include any input / output (I / O), such as networking, storage, or graphics facility, as the host environment (normally a web browser) provides those APIs. Although there are similarities between JavaScript and Java, including language name, syntax, and respective standard library, the two languages are distinct and differ greatly in design.

remove invalid parenthesis source code, pseudocode and analysis