Max Char Frequency

My code isn’t giving any output
https://ide.codingblocks.com/s/65507

@Ishitagambhir hey ishita you have to store occurence of character so take an array of frequency of character
and compare with max variable and update max each time and take a character variable and return that character within nested loop if you still didn’t get it tag me i will help you

thanks! I was updating the wrong variable in the nested loop so it went in an infinite loop. thanks for the help tho