Rippling interview question

I was mostly asked dynamic programming questions.