Nordstrom Interview Question

Converting written out numbers into numerical representations