Question d’entretien chez Microsoft

Convert a string to int without using inbuilt libraries.