Algo Problem - 4 : The Math Wizard