Finish leetcode_31.
Finish leetcode_32.