Max frequency character


it is giving 3 test cases as wrong

@lipikarustagi
It is specified that the string can be 1000 character long as well. Your character array is of size 100 only. Make the according changes.

I even changed it to 1000 still 3 test cases wrong

@lipikarustagi
Your final answer is not s1[pos] . It is ‘a’+pos.
cout << (char)(‘a’+pos) ;

resolved. thank you!