Easily done in 2-3 hours of racing. You get XP for both online and career mode racing. Some tips to make it go faster:
- Turn off assists. The more you turn off, the more "bonus" XP you get.
- Racing online can net a lot of XP.
- In career, look for races that give a bonus to driver XP.