SG ATS Programming Contest #8 : Mathematics / Probability