LinkedIn interview question

Data structure questions