Frage im Vorstellungsgespräch bei Intelliwings

They asked balanced parenthesis question same as on leetcode .