Pregunta de entrevista de United Airlines

Q: How to find element in array?