Pergunta de entrevista da empresa Amazon

Write an algorithm to check if an array holds a string value that you are passing in.