eBay Interview Question

Convert an arbitrary integer number to spoken words. I could implement a version of this algorithm with limit of integer below 10000. But for all integer I do not have the answer.