Data Structure Questions Leetcode Two