you give 0indexed 2D integer array question questionsi pointsi brainpowerithe array describe question exam process question order ie start question 0 decision solve skip question solve question earn pointsi point unable solve brainpoweri question if skip question decision questionfor example give question 3 2 4 3 4 4 2 5if question 0 solve earn 3 point unable solve question 1 2if instead question 0 skip question 1 solve earn 4 point unable solve question 2 3return maximum point earn exam Example 1input question 32434425output 5explanation the maximum point earn solve question 0 3 Solve question 0 earn 3 point unable solve 2 question unable solve question 1 2 Solve question 3 Earn 2 pointstotal point earn 3 2 5 there way earn 5 pointsExample 2input question 1122334455output 7explanation the maximum point earn solve question 1 4 Skip question 0 Solve question 1 earn 2 point unable solve 2 question unable solve question 2 3 Solve question 4 Earn 5 pointstotal point earn 2 5 7 there way earn 7 point Constraints1 questionslength 105questionsilength 21 pointsi brainpoweri 105