DevRev interview question

Q. A question based on data structures.