Snap Interview Question

How would you convert 123 to One Two Three in code and other such inputs.