input: Write a python function to update each element in an array by adding 10 to it.
  assert updateArray([1, 2, 3, 4, 5]) == [11, 12, 13, 14, 15]
  assert updateArray([10, 20, 30]) == [20, 30, 40]
  assert updateArray([0, 0, 0]) == [10, 10, 10]
output: def updateArray(arr):
      return [x + 10 for x in arr]