leetcode 8.11