1.
Build the function
censorLetter
which takes a string and a char to censor as parameters and returns a “censored” string where all copies of the char are replaced with *
. For example, `censorLetter("Bye world", ’o’)` returns the string “Bye w*rld”.