Matrix Cells in Distance Order - DSA Problem | Talentd