Smallest Substring Of All Characters Leetcode Playground Python