Firstly, we will give a value of
string.Empty to the
string, which will keep the result. We must recur a loop
n times, so that in each iteration we will add the encrypted symbol to the result string.
In order to find the first and the last digit of the ASCII code, we will use the same algorithm that we used to solve "Integer to Base".
Test your solution here: https://judge.softuni.bg/Contests/Practice/Index/594#14.