<prompt> Unganisha safu mbili zilizopangwa za nambari kamili katika safu moja iliyopangwa.1, 2, 5, 8, 3, 4, 6, 7  <response>: def mergeSortedArraysarr1, arr2: outputArray arr1_Index 0 arr2_Index 0 huku arr1_Index lenarr1 na arr2_Index lenarr2: ikiwa arr1arr1_Index arr2arr2_Index: outputArray.appendarr1arr1_Index arr1_Index 1 kwingine: outputArray.appendarr2arr2_Index arr2_Index 1 huku arr1_Index lenarr1: outputArray.appendarr1arr1_Index arr1_Index 1 wakati arr2_Index lenarr2: outputArray.appendarr2arr2_Index arr2_Index 1 return outputArray arr1 1, 2, 5, 8arr2 3, 4, 6, 7mergeSortedArraysarr1, arr2 1,2,3,4,5,6,7,8 