My Python Leetcod Solution