input: Write a python function to get the value at a specific index in an array, returning 0 if the index is out of bounds.
  assert getValueAtIndex([20, 30, 50, 70, 90], 3) == 70
  assert getValueAtIndex([20, 30, 50, 70, 90], 5) == 0
  assert getValueAtIndex([10, 20, 30], -1) == 0
  assert getValueAtIndex([], 0) == 0
output: def getValueAtIndex(arr, index):
      if 0 <= index < len(arr):
          return arr[index]
      return 0