Pluto7 interview question

How does the Stochastic Gradient work in optimizing the neural network?