Leetcode Array And String Problems In Python How To Organize