TuSimple interview question

Algorithm questions Leetcode medium to hard