Finish leetcode_62.