Bloomberg interview question

Remove every nth element from cyclical elements and return the index