D2L Interview Question

write the logic for array sorting and Array manipulation