Staqu Technologies interview question

Write code for convolution operation on a nXn matrix with a 3X3 kernel.