I am not able to debug my code

why do i keep getting a segmentation fault.

Check now ->, you forgot base case in mergesort function