leetcode 9.13