text: if right adjacent is having higher marks add one in dp of left adjacent and assign to right one
code: elif marks [ i ] < marks [ i + 1 ] : NEW_LINE INDENT dp [ i + 1 ] = dp [ i ] + 1 NEW_LINE DEDENT return ( sum ( dp ) ) NEW_LINE