Leetcode Basic Python Problems