Add solution for TIDRICE

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