Snap interview question

Implement convolutional operator (for example in python in for loop)