Used Modulo to get the answer for part 2 of Slices of pie.