$ 0 0 I am getting segmentation fault for this problem. link textit accepts 9 test cases, but not the 10th onehere's my solution link text