Program to Traverse an Array.

Traverse: Traverse means to view or display or by define it “Transverse means to move or travel through an area.”