Criteo Interview Question

give the longest balanced parenthesis substring