Domanda di colloquio di TuSimple

leetcode problem and calculate complexity