Pregunta de entrevista de Siemens Healthineers

Using plain Java how to print number into words