code for problems in leetcode