Concept Flow - String to Integer atoi
Start
Skip leading spaces
Check sign (+/-)?
Read digits one by one
Convert char to digit and build number
Check overflow
Apply sign
Return integer result
The process reads the string from left to right, skipping spaces, detecting sign, converting digits to number, checking overflow, and returning the final integer.
