Python Leetcode Problems Hard