Create Convert Numbers Into Word Representation

This problem was originally posted on Euler project and I wrote this solution in Python. In case your code gets messed up, this is the actual answer: 21124