my code for leetcode problems