Engineering
3. Boring Array Array operations are boring and fun! You are given two arrays of integers a 1 ,a 2 ,,a n a and b 1 ,b 2 ,,b n . Let's define a transformation of the array a : Choose any non-negative integer k such that 0kn . Choose k distinct array indices Add 1 to each of a i1 ,a i2 ,,a ik , all other elements of array a 1 remain unchanged. Permute the elements of array a in any order. Is it possible to perform some transformation of the array a exactly once, so that the resulting array is equal to b? Function Description Complete the function trans formArray in the editor below. trans formArray should return True if array a can be transformed into array b by the operation mentioned above, otherwise, return me formarray has the following parameter(s): a: a string representing array, each element is separated by space b: a string representing array, each element is separated by space Constraints - n(1n10 6 ) - a 1 ,a 2 ,,a n (10 6 a i 10 6 ) - b 1 ,b 2 ,,b n (10 6 b i 10 6 ) Input Format For Custom Testing - Sample case 0 Sample input 42340 12345 1>101/b in/python 3 13 * Complete the 'transionmarray' funct 14 The function is expected to return. 16 * The runction 17 2. STRTNG b 18 * 19 20 def transformArray (a,b): 21 * Write your code here 23> if __name = = '_main_-'g ... array indices 1i 1