Update ArithmeticProgression.java

Updated formatting