input: Write a function that takes a list of strings, converts each string to camelCase by capitalizing the first letter of each word and concatenating them, and returns the concatenated string.
  
  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(["simple", "test", "case"]) == "SimpleTestCase"
  assert convertToCamelCase([]) == ""
output: def convertToCamelCase(list):
      camelCaseList = []
  
      for string in list:
          camelCaseList.append(string.capitalize())
  
      return ''.join(camelCaseList)