code for problems on leetcode