Implement a program to merge two sorted arrays into one sorted array.
MediumProblem Statement
Implement a program to merge two sorted arrays into one sorted array.
Sample Input
int arr1[] = {1, 3, 5}, arr2[] = {2, 4, 6};Sample Output
Merged array: 1 2 3 4 5 6
Limits
Time: 2s · Memory: 256 MB