Pregunta de entrevista de Meta

Given an array of commits, return the first bad commit?