Solve TheArithmeticProgression