Auth0 interview question

Explain how OAuth protocol works?