Amazon uses matrix problems to test boundary management under pressure. Spiral Matrix is the classic example: you maintain boundaries (top, bottom, left, right) and shrink them inward after each pass.
Off-by-one errors are the main failure mode here. If you can solve this without bugs, it proves you handle complex loop conditions cleanly. You'll walk away knowing how to traverse any D structure layer by layer, which transfers to any problem with shrinking boundaries.