Aaaah.

A famous homework question.

I have a simple rule on these : show me what you have done and I will help, but I will not do your homework for you

Post your ideas, code and attempts and people will gladly assist you.

Best regards
Ewald