Frage im Vorstellungsgespräch bei Bloomberg

the question was asked on datastructures to implement a Integer.parseInt function