DreamBox Learning interview question

White board problem. Given an integer input, return the value as its word value as a string. Example: input int 1234 returns output string one thousand two hundred thirty four