In this task, you need to replace a letter in the sentence with another given letter.
Sentence: 'a brown and black dog is sleeping in a bed and some pillows'. Replace the letter 'w' with 'n' in the sentence.