Finish leetcode_61.