In this task, you need to replace a letter in the sentence with another given letter.
Sentence: 'gray cat sitting inside the basket holding a teddy bear'. Replace the letter 'n' with 'y' in the sentence.