PIBRO Editorial

Here is your AC code, with a single change .you should iterate from i =0 upto i=n-k.
https://www.codechef.com/viewsolution/48832337

Try this
1
5 1
11011