Leetcode Basic Problems In Python Class