dont have my bass on hand, but looking at the notes, i would say the easiest way to play it would be in first position. index finger on the F, go to the Bb right above it, then back to the F, then with your pinky hit the Db(C#), which is just 4 frets over, 1 string up. So if you starting on the B string, dont try to hit that Db on the A string (4th fret), hit the one on the E string (9th fret). when you keep your hand in this position, all of the notes stay within a 4 fret range.
for the 2nd group of notes, you can either hit the Eb directly above the Bb, or I think you can be quick enough to get your pinky to that Eb 2 frets over from the Db you hit in the first run, and then bring it back to the Db. once you do that your back in the 4 fret range for the rest of the notes.