The Working Implementation of the Josephus Probem.