ByteDance Interview Question

I think there was a dynamic programming question