Plastic Mobile interview question

Programming question based on data structures.