Technossus interview question

Whiteboard question about finding a character in an array