1 test case failed

also please tell what will be the output if two characters have the same frequency

this is the code https://ide.codingblocks.com/s/200937

@mohdkaifalam041 if two characters have the same frequency we need to print the one which comes first in order.
for your code consider the possibility of input string of length 1