Mapped strings problem

output to sample case is correct still not passing the test case

@shiniagarwal25
consider this testcase.
888
your code is printing “HHH HH H” whereas ans should be “HHH”
So add this condition after line 18, if(no>26){ return; }
Your code will work