solutions for leetcode problems