how to circulate the count of charecter array
i need to circulate the count ,
say if i have a character array  FLAMES.
and if i input 5 as a number .it should count from f as 1 and delete 5th element  i.e "E".and it starts counting  from the next letter s as 1 and again  the first letter "F" as 2 and "L" as 3 and so on .
             when it reaches count  5 ,it deletes that 5th letter say "M".and again it starts counting  from the next letter   s as 1 and  so on and at last it should remain with one alphabet say "F" for number 5 as my in put .
how to circulate the count of charecter array
===

i need to circulate the count ,
say if i have a character array  FLAMES.
and if i input 5 as a number .it should count from f as 1 and delete 5th element  i.e "E".and it starts counting  from the next letter s as 1 and again  the first letter "F" as 2 and "L" as 3 and so on .
             when it reaches count  5 ,it deletes that 5th letter say "M".and again it starts counting  from the next letter   s as 1 and  so on and at last it should remain with one alphabet say "F" for number 5 as my in put .