Bloomberg Interview Question

Remove every nth element from cyclical elements and return the index