Wrong test case!

5x1 4x2 3x3 2x4 1x5 = 35

But the sample test case showing 40 !! why ?

Hi,

Actually you have to find maximum cost permutation having an array of 0-based indexing.
Now,try to solve the question.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.