How do green beaches turn green?

Can you answer this question?