Amazon Interview Question

They asked a leet code style matrix operation question.