Question

$$\left. \begin{array} { l } { - 2 - a + a ^ { 2 } } \end{array} \right.$$

Evaluate

$\left(a-2\right)\left(a+1\right)$