Given a string, how would you compute the frequency of each character and also return the first index where each character occurs?
Implement character_stats(s). Treat characters as case-sensitive, preserve spaces and punctuation, and return a dictionary mapping each character to [frequency, first_index].
Input: a string s. Output: a dictionary whose keys are the distinct characters in s.
def character_stats(s):