PwC interview question

Convert a numeric string into an int.