To know about the DP approach taken to solve this question

Pls send the DP approach code to this problem

@Codarikh sending the implementation is not allowed can you please tell me whether you have reached to dp section or not .