Wrote a program to sort an array of length 5