1678. Goal Parser Interpretation
Description
**Input:** command = "G()(al)"
**Output:** "Goal"
**Explanation:** The Goal Parser interprets the command as follows:
G -> G
() -> o
(al) -> al
The final concatenated result is "Goal".**Input:** command = "G()()()()(al)"
**Output:** "Gooooal"**Input:** command = "(al)G(al)()()G"
**Output:** "alGalooG"ac
Last updated