My solution to problems on LeetCode