Sobes.tech
Junior — Senior

Function to merge two sorted arrays

livecode

Task condition

Implement a function that takes two already sorted arrays of integers (for example, arrA and arrB), merges their elements, and returns a new array in which all numbers are in ascending order. The original arrays should remain unchanged.