David Cote’s unlikely climb shows why one brutal career setback can tell you surprisingly little about what comes next.