What did you try?
Your homework is meant for you to figure out, to give you the ability to solve the problem. Not to see how someone on a forum would solve the problem.