The link for the problem is : DISHOWN Problem - CodeChef
My code is: CodeChef: Practical coding for everyone