Amazon interview question

Q: location of specific element in array Q: Hash map