input: Write a python function to merge two lists alternately.
  assert joinLists([1, 2, 3], [4, 5, 6]) == [1, 4, 2, 5, 3, 6]
  assert joinLists([1, 2], [3, 4, 5, 6]) == [1, 3, 2, 4, 5, 6]
  assert joinLists([7, 8, 9], [10]) == [7, 10, 8, 9]
output: def joinLists(list1, list2):
      result = []
      for i in range(max(len(list1), len(list2))):
          if i < len(list1):
              result.append(list1[i])
          if i < len(list2):
              result.append(list2[i])
      return result