Question d’entretien chez Meta

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