This song is by British rapper M.I.A. and it samples the song "Straight to Hell" by The Clash.
This is what the rapper said about the gunshot sound effects on the song:
"“If you’re an immigrant you left somewhere and most of the time you fled a war. Gun sounds are a part of our culture as an everyday thing. If you’ve been exposed to gunfights and violence and bombs and war then I can use those sounds backing my thoughts, ya know? Look, I’ve been shot at so I’m quite comfortable with gunshot sounds. If you have a problem with it, go and talk to the people who were shooting at me.”