input: Write a function that converts a list of strings to camelCase and returns the result as a single string. The function should capitalize the first letter of each string in the list and then join them together without any spaces.
  
  
  def convertToCamelCase(list):
      camelCaseList = []
  
      for string in list:
          string = string.capitalize()
          camelCaseList.append(string)
  
      return ''.join(camelCaseList)
  
  # Test cases
  assert convertToCamelCase(["this", "is", "an", "example"]) == "ThisIsAnExample"
  assert convertToCamelCase(["to", "be", "or", "not", "to", "be"]) == "ToBeOrNotToBe"
  assert convertToCamelCase(["a", "new", "beginning"]) == "ANewBeginning"
  assert convertToCamelCase(["python", "is", "fun"]) == "PythonIsFun"
  assert convertToCamelCase(["hello", "world"]) == "HelloWorld"
  
output: def convertToCamelCase(list):
      camelCaseList = []
  
      for string in list:
          string = string.capitalize()
          camelCaseList.append(string)
  
      return ''.join(camelCaseList)