My answer to leetcode problems