Microsoft interview question

Convert a string to int without using inbuilt libraries.