There are only two summation indices, namely $r$ and $p.$ Hence you may think of the terms of the sum as arranged in a rectangular array $(p,r)$ of order $n×n$
On LHS we vary $p$ first and fix $r.$ Then we vary $r.$ This means for each column, we add all its components, and then add all the column-sums. On RHS the reverse is done; we vary $r$ first, fixing $p.$ Then vary $p.$ This means for each fixed row we add all its components, them add all such sums. Of course we get the same result however we choose to add. Thus, $\text{LHS}=\text{RHS}.$