G-Research interview question

How does the Adam optimizer work?