Finish leetcode_36.