Target Interview Question

Convert a string to integer without inbuilt functions