String max frequency code

3 test cases worked but 2 didnt.

hello @mittali

check now->

in else situation we need to apply else if check == false.

otherwise whenever it is not equal it will go there and change the i. but we dont want that. we want once its not equal only that tie i is updated

see only the if statement is sufficient , no need to use any other else or if or any check variable

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.