input: Write a python function to build a dictionary from a list of strings where each string contains a key and a value separated by '->'.
  assert build_dictionary(["apple->red", "banana->yellow", "cherry->red"]) == {"apple": "red", "banana": "yellow", "cherry": "red"}
  assert build_dictionary(["cat->meow", "dog->bark", "cow->moo"]) == {"cat": "meow", "dog": "bark", "cow": "moo"}
  assert build_dictionary(["key1->value1", "key2->value2", "key3->value3"]) == {"key1": "value1", "key2": "value2", "key3": "value3"}
output: def build_dictionary(strings):
      result = {}
      for string in strings:
          key, value = string.split("->")
          result[key] = value
      return result