Pergunta de entrevista da empresa AppFolio

Pair programming problem, find one local minimum in an array, which I and the interviewer worked together.