Doubt in the code

please check my code

@Adhyayan
Please save ur code on ide.codingblocks.com and share it

mam ,please check my code.

@Adhyayan when size==n then dont return the same list.
lets suppose ip is 1 2 3 4 and k =5
it means is we have to append last 1 i.e. k%n