Aakash and the arrays

question: https://hack.codingblocks.com/contests/c/512/1598
my sol : https://ide.codingblocks.com/#/s/29480

out of 4 test cases only 3 test cases are passing, but i am unable to find which test case is failing.

https://ide.codingblocks.com/#/s/29525

i have marked the mistakeā€¦

thnx for helping got your point