ByteDance interview question

ML related, Linkedlist, DP, etc