Bloomberg Interview Question

A function to convert numerical string to an integer.