Array How Can I Optimize My Code For Swapping The Array Elements Of

Array How Can I Optimize My Code For Swapping The Array Elements Of