Why three testcsae failed ?? Any hint?
Some testcase failed
hello @1997gautam.shah
pls save ur code here ->https://ide.codingblocks.com/
and share the link with me

add this line in ur code. ( value of k can exceed length so to make it in range of length we r taking modulo)
Thanks! Got the point. Marked Resolved. 