I\'m trying to implement a method that takes as a parameter: target string and an array with string values in it. The goal is to check if
string
array