Qualcomm Interview Question

Second Interview - Return the most frequent character in a string.