Homework 5 submission

You are supposed to be returning an index, which is an integer.