Homework 7 Solutions

What if 2*index+2 >= numItems?