code for questions from leetcode