TuSimple Interview Question

I got asked OA on Hackerrank. Test 8. Just mostly simple array manipulation and parsing.