Frage im Vorstellungsgespräch bei Microsoft

Write a method IntToString which converts an integer to a string with thousands separators.