Finding character with max frequency question

https://hack.codingblocks.com/contests/c/509/241

please guide me about how to solve this question;
i am having trouble with both string and char approach

first i thought about sorting then solving but was unable to do so;
i had sorted a customised char array only when i knew its size;
and
i dont know the string approach
and am not able to sort the given single string e.g aabfsckd lexographically which if sorted would look like aabcdfks

In this question you can simply take an array of length 26, corresponding to the 26 alphabets.
Just keep on incrementing count of array by 1 when you encounter that alphabet.
Find the element with the maximum frequency at last from this array.

i got the solution i needed

how to delete a post on this site coz if i got my answer then this post becomes useless

There is no option to delete the post.
You can edit your post only.
Its great that you got the right solution.