The scene with the water bottle riddle was filmed in Tompkins Square, however the Elephant fountain was a set built for the movie and doesn't exist in the square.