💡 Strings-Max Frequency Character

3rd test case is not working please find error in code

I check my code with many inputs it is working fine …but I cannot able to get why 3rd test case is not running

hey @sulbh579, check this case qwertyuiopoiuytrewqfff
your output is y
but correct output is f

I cannot able to get my error corrected kindly correct error

I made changes in code but now 5th test case is not working https://ide.codingblocks.com/s/167858

hey @sulbh579, here is your corrected code https://ide.codingblocks.com/s/168210