Mental Model
Convert a string of characters into a number by reading each digit one by one and building the number step by step.
Analogy: Like reading a price tag digit by digit and writing down the total price as a number in your notebook.
string: " -42abc" index -> 0 1 2 3 4 5 6 chars: ' ' '-' '4' '2' 'a' 'b' 'c' result: 0 sign: +1 ā index points to first char
