3rd test case is giving wrong answer in this code

@kamya hey kamya you have to do some changes
if(s>=0)
{
if(a[i][j]==’*’)
{
s=s+5;
}
else if(a[i][j]==’.’)
{
s=s-2;
}
else if(a[i][j]==’#’)
{
break;
}
if(j<m-1){
s–;
}