Example of reversing an array