Revolut interview question

How does gradient decent work, tell me step by step algorithm.