Not getting problem D of yesterday's round .
Hello , can anyone please clarify what the author is saying in editorial of problem d . I am not getting the dp state . how to think it recursively ?
why is author taking at most case ? what it mean ?