Partial Array Processing
length  is the number of slots assigned to
the array
What if the array doesn’t have valid data
in each of these slots?
Keep a counter of how many slots have
valid data and use this counter when
processing the array