Update longest_valid_parentheses.cpp

Review