Welcome here, your question is too 'easy' to become a question. And at lease you should show up what you have done.
But I will give you a shot.
I have wrote simple method for solve your question.
Sandbox to run this online
//Your code goes here
Console.WriteLine("Hello, world!");
//predifine your sets
var inputSet = new List<char> {'1','2','3','4','5','6','7','8','9','0'};
var outputSet = new List<char>{'A','B','C','D','E','F','G','H','I','J'};
//lets parse
Console.WriteLine(new string("1352".Select(x=>outputSet[inputSet.IndexOf(x)]).ToArray()));
Console.WriteLine(new string("199466856".Select(x=>outputSet[inputSet.IndexOf(x)]).ToArray()));
Console.WriteLine(new string("111222333444".Select(x=>outputSet[inputSet.IndexOf(x)]).ToArray()));
Result:
Hello, world!
ACEB
AIIDFFHEF
AAABBBCCCDDD
Edit:
Explain how it works.
"1352".Select(x)
To select chars one by one in the string and store in x
.
inputSet.IndexOf(x)
To find position of x
in inputSet
outputSet[int]
To get value by given position from found position in inputSet
recenly
new string(char array)
Instantiate a new string by given char array.