Finish leetcode_82.