Please tell the mistake in logic or code as correct answer is not coming

Hey @anantgovil123
problem is in order of argument for possible function
you are passing (a,n,m,mid) and collecting this(a,m,n,mid)
I hope your doubt is resolved now :slight_smile: