Problem:
Question- Write a function called censor. The function is passed a string as a parameter, which consists of words separated by blanks and/or punctuation marks, newlines, etc. censor returns a string in which any 4-letter words are replaced with 'XXXX'. Also, all punctuation marks, etc. are removed, and each word in the return string is separated from the next by a single blank.
Please write the program with the help of function called censor.