Hackerrank Mar'14 - Manasa Loves Maths