input: from typing import List, Dict
  
  def build_dictionary(samples: List[str]) -> Dict[str, str]:
      """
      Build a dictionary from a list of string pairs separated by "->".
      
      >>> build_dictionary(["apple->red", "banana->yellow", "cherry->red"])
      {'apple': 'red', 'banana': 'yellow', 'cherry': 'red'}
      """
      dictionary = {}
      for sample in samples:
          key, value = sample.split("->")
          dictionary[key] = value
      return dictionary
output:     dictionary = {}
      for sample in samples:
          key, value = sample.split("->")
          dictionary[key] = value
      return dictionary