BYTERACE-CAB help

Can someone please explain this problem? Is it similar to the lexicographical string of length N and sum K?
my sol:- Error Page | CodeChef
prob:- Contest Page | CodeChef

1 Like