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.