input: Write a function to find the maximum value in a list of integers.
  assert findMaxValue([3, 4, 6, 2, 8, 9, 5]) == 9
  assert findMaxValue([10, 20, 30, 40, 50]) == 50
  assert findMaxValue([-5, -10, -3, -1]) == -1
output: def findMaxValue(lst):
      max_val = lst[0]
      for num in lst:
          if num > max_val:
              max_val = num
      return max_val