Programming logic to convert number to words is considered Interviewers favorite question.See the code done in java.
Read this post on lexiconhub.tk