Write a function printElement that takes two arguments:
ints.int representing an index.If the int argument represents a valid index in the array, print out the corresponding element.
Otherwise, print "Invalid index".
Stuck? You may find these lessons helpful: