Monitise Interview Question

Explain how Integer.parseInt(str) is implemented