I don't understand this one. The common way to do this would be to return the index into the data array and return -1 if not found.