Given two arrays:
arr1 = ['1', 'x', '0', 'x']
arr2 = ['2', '5']
The task is to replace the 'x' values in the first array with the numbers from the second array in the same order, resulting in:
arr3 = ['1', '2', '0', '5']
I am unsure how to approach this problem. I have attempted using concat() and slice() methods without success.