leetcode 007-009