You need to win 5000 without losing more money to continue.
Try odd, even, odd, even or vice versa at the table.
Don't worry. I actually managed to figure it out.