To answer this problem, you just have to clearly understand each statements in the problem. As you read them, write it on a paper in chronological form. Take note of phrases like 'ahead', 'after', 'beat', etc. This will help you in ordering them. The order from first to last is:
Sarah
David
James
Julie
Roger
Thus, David is in the second place.