Party Invitation
Problem description here
Solution Code
Approach
Starting from the end of the list (because deleting an earlier index will mess up the later index of things later in the list), remove every r
th number. Repeat m
times. Output whatever is left.