How it works
Read code like a recipe: start at the top and say what each line does, in your own words.
A name in code is a clue, like a label on a box. Good names tell you what each box holds.
Run it by hand with small numbers on paper to see what the code does.
Comments are notes for people, and they can go out of date. Check them against the code, because the code is what runs.