input: Write a python function to classify a given text based on categories.
  assert classify_text(['sports', 'news', 'entertainment'], "Today's sports event was exciting.") == 'sports'
  assert classify_text(['sports', 'news', 'entertainment'], "Breaking news: market crashes.") == 'news'
  assert classify_text(['sports', 'news', 'entertainment'], "The latest movie releases are out.") == 'entertainment'
  assert classify_text(['sports', 'news', 'entertainment'], "This is a random text.") == 'Uncategorized'
output: def classify_text(categories, text):
      text_lower = text.lower()
      for category in categories:
          if category in text_lower:
              return category
      return 'Uncategorized'