Chase Interview Question

the jumbled numbers programming question