Amazon interview question

2-D convolution as a matrix-matrix multiplication