Pinterest interview question

Explain gradient vanishing and exploding in neural network