splice method changes the original array , they dont want you to change it , this is what means The input arrays should remain the same after the function runs.
I solved this problem using for loop and only splice method and also I used spread operator to copy arr2 because I want to add to it the first array elements in order so it should not be changed because splice method changes it .
Your code changes arr2 because doing Arr2 = arr2 doesn’t copy it, you need to use concat, slice or spread operator. Also, look at your return statement.