If $A$ is a complex $n \times n$ matrix of rank $1$, then $$\det(I+A) = 1 + \mbox{tr}(A)$$
How to approach this problem?
Rank-$1$ matrices have special properties. Also, thinking about the determinant of a matrix as the product of its eigenvalues and the trace of the matrix as the sum of its eigenvalues,
$$\prod_{k=1}^{n}(1+\lambda_{k}) = 1 +\sum_{k=1}^{n} \lambda_{k}$$
I could not proceed.
The Jordan normal form of a rank $1$ matrix either has the form$$\begin{pmatrix}\lambda&0&0&\ldots&0\\0&0&0&\ldots&0\\&\vdots&&\ddots&\vdots\\0&0&0&\ldots&0\end{pmatrix}$$for some $\lambda\neq0$, or the form$$\begin{pmatrix}0&1&0&\ldots&0\\0&0&0&\ldots&0\\&\vdots&&\ddots&\vdots\\0&0&0&\ldots&0\end{pmatrix}.$$and the formula that you want to prove holds in both cases.