United Nations Interview Question

solve array of a number digits