Solution for Code Chef Problem 'MUFFINS3' (http://www.codechef.com/problems/MUFFINS3)