String difference in ASCII code

https://hack.codingblocks.com/contests/c/474/240/submissions

https://ide.codingblocks.com/#/s/13654

getting wrong ans for some test cases…!!

Try your code for input as:
qar
It’s expected output is:
q-16a17r


here’s the link to my problem, it’s similar to the above mentioned.
can you please take a look.