In this task, you need to replace a letter in the sentence with another given letter.
Sentence: 'dog in the air to catch a frisbee while a man lays on the ground'. Replace the letter 'n' with 'i' in the sentence.