Proofpoint interview question

write code the navigate a matrix , from outside to the center.