Array a contains elements 1 ,2 and the array b contains 3. The code then concatenates these arrays into new array and finds the first element in the concatenated array which is equal to 3. So, the output of the code is 3.
Array a contains elements 1 ,2 and the array b contains 3. The code then concatenates these arrays into new array and finds the first element in the concatenated array which is equal to 3. So, the output of the code is 3.
Not quite! Check out the solution I posted recently.