J.P. Morgan Interview Question

normalize the array/ sort the array