input: Write a function to create an autocomplete system that predicts words based on the input text. The function should generate word candidates, filter them, rank them, and return the top 5 word suggestions. If the input text is empty, the function should return an empty list.
  assert autocomplete("hel")==["hello", "help", "helper", "helmet", "helm"]
  assert autocomplete("ma")==["madam", "man", "many", "map", "manager"]
  assert autocomplete("pro")==["program", "process", "produce", "product", "professional"]
  assert autocomplete("z")==["zero", "zone", "zoo", "zip", "zoom"]
  assert autocomplete("")==[]
output: def autocomplete(text):
      words = ["hello", "help", "helper", "helmet", "helm", "madam", "man", "many", "map", "manager", "program", "process", "produce", "product", "professional", "zero", "zone", "zoo", "zip", "zoom"]
      if not text:
          return []
      suggestions = [word for word in words if word.startswith(text)]
      return sorted(suggestions)[:5]