Lexicographical Order String Leetcode Problems For Python