Fortinet Interview Question

Write a convolution function from scratch