my answer for leetcode problems