Merge two sorted array without using extra spaces


I am getting segmentation fault here so i wanted to know whats the wrong in this type of approach???
please suggest me…