Apple Interview Question

Implement a convolution algorithm in Python