Leetcode 170 problems and solutions