TuSimple Interview Question

1) Dynamic Programming 2) Tree Problem