Tesla interview question

Convolution coding for 2d image