LQ users are not in the habit of providing ready made solutions. You'll find us at our best when you put in the work for yourself, post what you've got and tell us where it's failing. You will not learn anything if we give you the solution. Show us what you've got and where it's not working our where you need clarification. The more verbose your question, the more precise the answer.