input: Write a function that takes a list of strings, converts each string to camelCase by capitalizing the first letter of each word and then joining them together, and returns a new string with the converted result.
  
  
  def convertToCamelCase(list):
      camelCaseList = []
  
      for string in list:
          string = string.capitalize()
          camelCaseList.append(string)
  
      return ''.join(camelCaseList)
  
  assert convertToCamelCase(["this", "is", "an", "example"]) == "ThisIsAnExample"
  assert convertToCamelCase(["hello", "world"]) == "HelloWorld"
  assert convertToCamelCase(["a", "simple", "test"]) == "ASimpleTest"
  assert convertToCamelCase(["example", "of", "a", "function"]) == "ExampleOfAFunction"
  assert convertToCamelCase([]) == ""
  
output: def convertToCamelCase(list):
      camelCaseList = []
  
      for string in list:
          string = string.capitalize()
          camelCaseList.append(string)
  
      return ''.join(camelCaseList)