Length Of Longest Valid Substring Leetcode Sql