TuSimple interview question

1) Dynamic Programming 2) Tree Problem