my code for leetcode