Can you help me with the approach to this question?

I don’t know how to start with the question.

hi @eragoncube_54c345cd154261dd,
if u know dp refer