Very simple matrix problem: we are given a $5 \times 5$ matrix, where every value is a $0$ except for a single $1$-value. All we need to do add $r$ and $c$ distances our $1$-value is from the center row and center column, respectively.