Determine whether the candidate belongs to the input sequence by searching the input sequence in encounter order for a value equal to the candidate. Stop at the first matching value.