Whenever you're ready, walk me through how you'd approach this.
Explain how you handle atoi assumptions and implementation to avoid security issues.