Exercise 5

Following the notes, write a script that defines the findIndex function, and tests the function on a few lists and words to look for.

For example, what does your function returns if you look for the word "apple" in a list that contains the following fruits in the following order: strawberry, apple, banana. What does the function returns when looking for the word "banana", and what about the word "grape"?