Pensando Systems interview question

Search for a value in an array whose length is unknown