Virtusa Interview Question

Coding to check the max charater occurence in given strung