K-Concatenation

this is question https://www.codechef.com/LRNDSA06/problems/KCON
can you tell me whatis wrong in my code.
my soluution :
https://ideone.com/1RfRpl