Barclays Interview Question

To convert the number to word in any language java, c++