Amdocs interview question

Write code for any sorting algorithm of your choice