Write a function that transforms an array of characters into an array of hashes, where:
to_hash(["a", "b", "c"]) ➞ [{"a" => 97}, {"b" => 98}, {"c" => 99}] to_hash(["^"]) ➞ [{"^" => 94}] to_hash([]) ➞ []
N/A