String max frequency

my code is not passing two test cases . pls correct it

@Keshav99
hello keshave,
intialise ur frequency array with 0.

its still not working

@Keshav99
share ur updated code

heres my updated code https://ide.codingblocks.com/s/197215 . i have tried memset also didnt work either

@Keshav99
other character apart from a to z can also be there in input string so better to declare ur freq array of size 256 and strore frequenies for each charater to their ascii index

thanks i get it ______________________________________