Update longestValidParentheses.cpp

it is a program to find the longest valid parentheses from a string which only consists of '(' and ')'