Jane Street Interview Question

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