Add solution for COOLING

http://www.codechef.com/problems/COOLING/