Insi interview question

Coding questions about data structure