Zillow interview question

3] Write a function that performs 1D convolution