IBM interview question

Implement max-pooling.