What have you done so far? What problem are you having?
This sounds like homework. This is the right place to get help with your homework, but don't expect anyone to do the homework for you. We can try to assist with specific questions.
Please follow-up to let us know how you made out. For good karma, mark a reply as the answer if it helped!
I agree with fire-eggs. Maybe you haven't idea how to solve the problem, but try to do a solution and if your solution have problems put here and we try to help you and also we can suggest other ideas to do a best solution
I hope to be useful. Good luck