Array content swap exercise