Help ramu ...question from array 1.0 section

i am unable to solve this question

I would recommend you to go through the online video lecture on ,


And try to implement your code accordingly…