Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
The film is set around 50s/60s in I'm guessing New York. There are a few kids that caught a police officer with two young prostitutes (I believe it was on the roof of some building) so they blackmail him. They would commit small crimes (e.g. steal) and the police officer would overlook those crimes.
That is all I saw from the movie, I would like to see the whole thing but can't find the name anywhere.
It is a long time since I saw it, but it sounds a bit like the beginning part of Once Upon a Time in America. But it's set a bit earlier (20s/30s) and I'm really unsure and should rather recheck the scene you mentioned but this was the first image coming to my mind when reading your question.