in reply to Index finding problem

this sounds like it's a homework problem from a CS class.