My solution to Leetcode problems