Allerin Technologies Interview Question

array in ascending order