Agilysys Interview Question

convert string to integer without using .net function