Finish leetcode_541.