Siemens Healthineers interview question

Using plain Java how to print number into words