Smallest Substring Of All Characters Leetcode Sql