TuSimple Interview Question

Algorithm problem for each round generally mid-hard level