Kindly check my code

hello @Manvik-Arya-4391661007540658
image
dont sort these array.

if we r considering ith index of inc then it is mandatory to consider ith index of dec because then only this formula (inc[i]+dec[i]-1) will be valid .

iterate from i =0 to n-1 , and compute maximum value of inc[i]+dec[i]-1
and print it