coding for leetcode problems