solved codechef 2014 july LONG CSUB