Interchange second element with last element of an

Interchange second element with last element of an array program please send me in detail