finish leetcode_310