## Text to Number

Given a text as input, translate the text into its integer representation. The numbers can range from negative 999,999,999 to positive 999,999,999.Note that the word “hundred” is not used when “thousand” could be. E.g. 1500 is written “one thousand five hundred”, not “fifteen hundred”.

Example 1:

```
input data:
negative six hundred thirty eight
output:
-638
```

Example 2:

```
input data:
two million one hundred seven
output:
2000107
```

**View Java Solution**