Insi interview question

data structures and the leetcode