How to Read Array and Print in Bash script

Here’s a simplified script to read all the elements of the array. You can do two things with this script. Those are appending and Counting.