input: Write a python function to count the occurrences of each character in a list of strings.
  assert array_to_char_count_dict(["hello", "world", "the"]) == {'h': 1, 'e': 2, 'l': 3, 'o': 2, 'w': 1, 'r': 1, 'd': 1, 't': 1}
  assert array_to_char_count_dict(["test", "code"]) == {'t': 3, 'e': 2, 's': 1, 'c': 1, 'o': 1, 'd': 1}
  assert array_to_char_count_dict(["a", "b", "c", "a", "b"]) == {'a': 2, 'b': 2, 'c': 1}
output: def array_to_char_count_dict(arr):
      char_count = {}
      for word in arr:
          for char in word:
              if char in char_count:
                  char_count[char] += 1
              else:
                  char_count[char] = 1
      return char_count