Leetcode Length Of The Longest Valid Substring