My solution for Leetcode problems