What wrong in my code?

hello @dineshjani
a)
image
why starting from 0.
u need to calculate sum from range i to j.

b)


use memset for intitilisation

and in place of k <=j use k < j