input: Write a python function to calculate the frequency of elements in a dataset.
  assert calculateFrequency([9, 5, 9, 8, 5, 5, 9]) == {9: 3, 5: 3, 8: 1}
  assert calculateFrequency([1, 2, 2, 3, 3, 3]) == {1: 1, 2: 2, 3: 3}
  assert calculateFrequency([4, 4, 4, 4, 4]) == {4: 5}
output: def calculateFrequency(data):
      frequency = {}
      for element in data:
          if element in frequency:
              frequency[element] += 1
          else:
              frequency[element] = 1
      return frequency