Pregunta de entrevista de Microsoft

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