SAP Interview Question

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