Wrong output in merge sort

@vinaykumar4530
You are not supposed to print the array while merging it. You are supposed to actually merge it. Make a temp array with the same size as ‘arr’ and put the sorted elements in temp.
Then copy all elements from temp back in the original array ‘arr’.
If you simply print the array , no sorting actually takes place , and your code does not work.

now also showing wrong output