totalXPForLevel
Calculates the total cumulative XP required to reach a target level from level 1. This is the sum of all xpToNextLevel values from level 1 to (targetLevel - 1).
Return
The total XP required to reach that level from level 1
Parameters
targetLevel
The level to reach (must be >= 1)