Correct logic but wrong answer


this is giving wrong answer
I have applied divide and conquer still not accepted

i have modified your code have a look…