Leetcode Solution Python Easy Practice