Leetcode Blind 75 Solutions Python