Domanda di colloquio di IBM

Standard questions like: how would you modify the array to return a certain value.