CTO.ai interview question

Explain how pooling layers work in a neural network