Did some Hackerrank.its boring. All math.