OYO interview question

they asked me about the dynamic Programming