LeetCode 13-14