code for leetcode problems