Sogeti interview question

What is the best way to pull a requested string from an array?