finish leetcode_111.