Two matrices $A$ and $B$ are given below: $A=\begin{vmatrix} p & q\\ r & s \end{vmatrix}$ ; $B=\begin{vmatrix} p^2+q^2 & pr+qs\\ pr+qs &r^2+s^2 \end{vmatrix}$ If the rank of matrix $A$ is $N$, then the rank of matrix $B$ is

Gatecse