input: Write a function to calculate the sum of the natural numbers.
  assert sumOfNaturals(10) == 55
  assert sumOfNaturals(5) == 15
  assert sumOfNaturals(100) == 5050
output: def sumOfNaturals(n):
      return n * (n + 1) // 2