Sophos interview question

Convert a string into an int.