Count the frequencies of chars in the char array.
Implement count_char_frequencies(char_array) to return a dictionary mapping each character to its number of occurrences. Matching is case-sensitive, and each array element contains exactly one character. Return an empty dictionary for an empty array.
Function signature: def count_char_frequencies(char_array): The output is a dictionary from characters to integer counts.
def count_char_frequencies(char_array):