Avni Networks interview question

WAP to sort an array list.