Microsoft Interview Question

string to int conversion