Deloitte Interview Question

Indxing rversed question of a n sized array