Express a Number in English Words

Convert a non-negative integer to its representation in English words.

Statement

Given a non-negative integer value, express it in English words.

Constraints

The maximum integer value to convert is 11 billion. The function should return -1 if the input number is negative or greater than 11 billion.

Example

Sample input

1234

Expected output

"One Thousand Two Hundred Thirty Four"

Try it yourself

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.