Can't solve the code's problem

See [The generalized Schur (QZ))