Pergunta de entrevista da empresa SAP

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