TuSimple interview question

Question about manipulating data structures