Cognizant Interview Question

finding the highest frequency character and some sql queries.