Criteo interview question

give the longest balanced parenthesis substring