Coremetrics interview question

string to integer