BT Group Interview Question

How to turn integer (in digit) to English representation?