This seems like assignment problem. Asking for complete solution right away isn't recommended.
Please try to give your effort in solving the problem and you may ask for help wherever you are stuck or facing difficulty. It will help you understand better.