+ 1
Well, first thing one how you can solve your problem with mathematics (or logical statments) then if you took the course you should try to get some ideas from it :) i mean you cant make a perfect code for the first time. When you ride the bike for the first time, you will be perfect? no, so try to make version 1 of the code,then see what errors you get or what you need to do to improve it :) and get to version 2 :D and so on untill you are completely satisfied with what you did.
Good luck! :)