Leetcode Basic Problems In Python For Loops