How far have you got and where are you stuck?
Do you understand the requirements?
What algorithm do you think you might use (as in: how do you think the program will work)?