update solution for leetcode Longest Valid Parenttheses