Cognizant interview question

finding the highest frequency character and some sql queries.