Help ramu ...question from array 1.0 section

in am unable to solve the question…

I would recommend you to go through the online video lecture on the problem and try to implement your logic accordingly…