Accenture interview question

What is sequence diagram used for