Meta Interview Question

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