**Problem Statement:**
Given the required input arguments, write an efficient algorithm to solve the **String to Integer (atoi)** problem. Implement the required logic as specified by standard definitions for this classic algorithmic challenge.
**Hint / Expected Approach:**
Handle whitespace, sign, overflow, invalid chars
**Edge Cases to Consider:**
- (1) Leading whitespace
- (2) INT_MAX+1 overflow
- (3) No digits after sign