Create LongestValidParentheses.cpp

this code can solve the problem in O(N) complexity, just scan from left to right is enough.