SambaNova Interview Question

Given a 2D matrix stored in a row vector, its row dimension, and its column dimension, write code that would access its data in a specific access pattern.