Pls check it it is printing the wrong o/p

hello @sneha23

image
here it should be b[j] in place of b[i]