Is this an interview question or a class exercise?
What do you think?
Also, recommend you read the info at the link Enrico posted. The very best way to get help from a forum is to ask your question in such a way that answer you are looking for is most likely to be the reply. . .
Hope this helps,