iterating over an array using while loop
iterating over an array using for loop