Help in LEBOMBS

Can someone tell me what’s wrong in this.

Here is the code https://www.codechef.com/viewsolution/16582222

for input

1

4

1100

your code’s output:0

Correct Output:1

Hint:Store the indices of buildings containing the bombs in an array and change your string accordingly