The Josephus Problem

Enter the number of people and step count to simulate the Josephus problem: