Median of Sorted Arrays


plz help me with the code, one test case is not orking,thankz

Your code is not producing correct output for following test case :
7
4 6 8 12 14 16 18
3 5 7 11 13 15 17
Expected output : 11
Your output : 10