solve problems in leetcode