Test cases failing

I am getting right output but test cases are failing

image

start the loop from s NOT from 0