How does diarrhea work?

Can you answer this question?