Update week_2_exercise_12.groovy

Working on writing a method to calculate the value using a method