Amazon Interview Question

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