Solve problems from LeetCode