(if some of them appear equal number of times, then first in frequency sequence will be lower letter between them).
Dear Author ,
How can one understand this as that they have to give priority based on alphabetical order.
Some one commented that we have to consider aphabetical ordering incase two letters have same frequency. if the comment was not made i would have wasted my time on debugging my code for the whole contest.
This problem statement is very poorly written. I still haven’t understood the question. Can someone please make the video solution for this question, so that I can at least understand what the question expects from us…?