Here my solution for the problem CHEFSUBA. I can not understand the later part of the problem when
k<n. How should we approach it, if k=3 and n=5, should we iterate in this frame for 3(5-3+1) times or take it once, for n, collectively? I have used repetition to avoid the rotation, If any hint/explanation can be provided, It will be great as I desperately want an AC for this problem.