Easy Math Hackerrank Solution