Create a function that takes an array and a string as arguments and returns the index of the string.
findIndex(new String[]{"hi", "edabit", "fgh", "abc"}, "fgh") ➞ 2
findIndex(new String[]{"Red", "blue", "Blue", "Green"}, "blue") ➞ 1
findIndex(new String[]{"a", "g", "y", "d"}, "d") ➞ 3
findIndex(new String[]{"Pineapple", "Orange", "Grape", "Apple"}, "Pineapple") ➞ 0return the result.