X interview question

Standard leetcode and data structure questions