Since this appears to be homework, I won't give you a solution.

What have you learned so far on how to go about it? Don't ask for a solution. Try it yourself and tell us where you're stuck.

On a side note, I think the people that wrote the assignment need to get a clue about string literals and read-only memory.