input: Write a function to convert a list of strings into camelCase and return a new list with the converted strings. The function should handle an empty input list by returning an empty list.
  def convertToCamelCase(list):
      if not list:
          return []
      camelCaseList = [string.capitalize() for string in list]
      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):
      if not list:
          return []
      camelCaseList = [string.capitalize() for string in list]
      return ''.join(camelCaseList)