Function receives array index and returns the new index that same item would have if the array's order were reversed