SAP interview question

Convert string representing an integer to an integer without using built in functions