why this code is giving wa for lebamboo

question is :-- http://www.codechef.com/OCT13/problems/LEBAMBOO
code is :-- // LINK REMOVED

//