LeetCode3 python version