Top String Problems Leetcode Python