IBM Interview Question

Implement max-pooling.