Implemented solution for CodeEval's Word to Digit challenge
https://www.codeeval.com/open_challenges/104/