Pls check it is giving runtime err
Updated ur code and mentioned the changes in comments: https://ide.codingblocks.com/s/361198
If this resolves ur query then please mark it as resolved 
mam it is still not passing 2 testcases
pls see to it ma’am!!!
yes change line 12 to
while( i<=mid && j<=e) //////
i in place of s
if this solves your doubt please mark it as resolved 