Concept Flow - String to Integer atoi
Start
Skip leading spaces
Check sign: + or -
Read digits one by one
Convert char to digit and build number
Check overflow
Return final integer
The process starts by ignoring spaces, then checks for a sign, reads digits to build the number, checks for overflow, and finally returns the integer.
