input: Write a function that takes a list of strings, converts each string to camelCase by capitalizing the first letter of each string, and returns the concatenated result as a single string. If the input list is empty, return an empty 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(["a", "b", "c"]) == "ABC"
  assert convertToCamelCase([]) == ""
output: def convertToCamelCase(list):
      camelCaseList = []
  
      for string in list:
          string = string.capitalize()
          camelCaseList.append(string)
  
      return ''.join(camelCaseList)