write a function mergingtripletsandquints which takes in two arrays as arguments. this function will return a new array replacing the elements in array1 if they are divisible by 3 or 5. the number should be replaced with the sum of itself added to the element at the corresponding index in array2.