Concept Flow - String to Integer atoi
Start
Skip leading spaces
Check sign '+' or '-'
Read digits one by one
Convert digit char to int
Check overflow
Add digit to result
Next char is digit?
No→Return result with sign
Yes
Repeat reading digits
The process reads the string from left to right, skipping spaces, detecting sign, converting digits to number, checking overflow, and stopping at first non-digit.
