Jane Street interview question

implement a dot product and implement it in a 2d convolution