Https://ide.codingblocks.com/#/s/17662

Code link https://ide.codingblocks.com/#/s/17662
Question Link - https://www.hackerearth.com/practice/data-structures/arrays/1-d/practice-problems/algorithm/monk-and-rotation-3/

chitresh check this
https://ide.codingblocks.com/#/s/17688
and dont do run time static declaration either declare dynamically or gave size

Thanks Sharad bhaiya , but what If i Want it to do in place and return the array , I am getting one test case right , I tried giving size at declaration time but still not passing other test cases , is there something wrong with logic??

your post was hidden post your code link again i wiil mark your mistake