Accenture Interview Question

WAP to swap to sort an array