Help in LEBOMBS

Can someone tell me what’s wrong in this.

Here is the code Solution: 16582222 | CodeChef

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