ServiceNow Interview Question

AtoI (String to Number Conversion) Problem.