Input String: "abcdeapapqarr"
Expected Output: 'a'
Since 'a' has appeared four times in the string which happens to be the highest frequency character, the answer would be 'a'.
Assume all the characters in the given string to be in lowercase always.
The first and only line of input contains a string without any leading and trailing spaces.
The only line of output prints the updated string.
You are not required to print anything explicitly. It has already been taken care of.
0 <= N <= 10^6
Where N is the length of the input string.
Time Limit: 1 second
Minimized Maximum of Products Distributed to Any Store
Count of Subsequences with Given Sum
K-Distinct Subarray Sum
Unique Gift Packing
Optimal Line Arrangement