Johnson & Johnson Interview Question

how do you traverse a 2x2 matrix and what's the time complexity.