Write a program that uses a recursive method to replace all occurrences of a character with another character in a given sentence. You must first input the sentence, then the character to search for and, finally, the replacement character. The sentence with replaced text must be output to the screen.
This is equivalent to the Unix command "tr".
You may not use any existing method to do the text replacement in one statement!
Sample I/O
Hello World
l
x
Hexxo Worxd