You are given an array of words and a sentence. Write a script to replace all words in the given sentence that start with any of the words in the given array.
Task 2: Word Search
You are given a grid of characters and a string. Write a script to determine whether the given string can be found in the given grid of characters. You may start anywhere and take any orthogonal path, but may not reuse a grid cell.