code for problems in leetcode.com