Valeo interview question

Implement convolution operation from scratch in python