LeetCode exercises solved using python