PROLIFIQ interview question

a question with data structures