How do you implement watershed?

Can you answer this question?