Fixed the printf statement in the driver to print all of the array elements and created the appropriate parameter sizes