Add solution for DIRECTI

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