Microsoft Interview Question

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