leet code excises in Python