Longest Non Repeating Substring Leetcode Sql