Pregunta de entrevista de Amazon

How does gradient descent work?