finish leetcode_112.