getting here two test cases wrong
https://ide.codingblocks.com/s/48941
Maximum frequency1
Hey Aastha there is one correction in your code. modify line:9 of your code as int x=str[i]-'a';
.
Also, you can check your code for this input it is giving wrong answer
input:
hellloooo