input: Write a Python function to calculate relevance score of query terms and sort search results based on the relevance score.
  assert calculate_relevance_score("apple banana orange") == {'apple': 5, 'banana': 6, 'orange': 6}
  assert calculate_relevance_score("kiwi mango") == {'kiwi': 4, 'mango': 5}
  assert calculate_relevance_score("strawberry blueberry") == {'strawberry': 10, 'blueberry': 9}
output: def calculate_relevance_score(query):
      terms = query.split()
      relevance_scores = {}
      
      for term in terms:
          relevance_scores[term] = len(term)
      
      return relevance_scores