solutions to questions on leetcode