Answer:
Explanation:
The following code is written in Python. It is a function that takes the three arrays as parameters. It loops over the first array comparing to see if a number exists in the other arrays. If it finds a number in all three arrays it adds it to an array called same_elements. Finally, it prints the array.
def has_same_elements(arr1, arr2, arr3):
  same_elements = []
 Â
  for num1 in arr1:
    if (num1 in arr2) and (num1 in arr3):
      same_elements.append(num1)
    else:
      continue
 Â
  print(same_elements)