1. Make temp point to the object that cubes[a] is pointing to. 2. Make cubes[a] point to the object that cubes[b] is pointing to. 3. Make cubes[b] point to the object that cubes[c] is pointing to. 4. Make cubes[c] point to the object that cubes[d] is pointing to. 5. Make cubes[d] point to the object that temp is pointing to.