we know that for all $A,B\in M_n(\mathbb{C})$ : $$ rank (A+B)\leq rank(A)+rank (B) $$ see here for a simple proof, but for which condition on the coefficients of $A$ and $B$ we can obtain a perfect equality.
more simply if we assume that $rank(A)=1$ what will be the condition on $B$ to have : $$ rank(A+B)=rank(B)+1 $$