Test Case 2 and 4 are giving wrong answers

While checking in different IDE i am getting same output that is given in both test cases.

hi @aditikandhway you can make a simple frequency array of size 256 (pertaining to the 256 ASCII characters), initialise it with 0 and update the freq for each character as it comes, and run a for loop through it to get the character with max frequency.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.