Practice for leetcode