done with 1-D and 2-D array creation and Iteration over array