Solving problems at leetcode