Plan ahead how to solve the problem first, (on paper perhaps) and then translate the solution into code. Work on one problem at a time.
Pick one to begin with, write out the plan of how to solve it,...