Agilysys interview question

convert string to integer without using .net function