input: Write a python function to replace each word in a sentence with a given character.
  assert replaceWordsWithCharacter("I am bored", "*") == "***"
  assert replaceWordsWithCharacter("Hello world", "#") == "######"
  assert replaceWordsWithCharacter("Python programming", "?") == "???????"
output: def replaceWordsWithCharacter(sentence, char):
      return ' '.join([char * len(word) for word in sentence.split()])